/*
package com.qst.mapreduce.wordcount.taobao;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class InfoReducer extends Reducer<App,Text,Text, App> {

    @Override
    protected void reduce(App key, Iterable<Text> values, Reducer<App,Text,Text, App>.Context context) throws IOException, InterruptedException {
    int count=0;
    int tatolBrowseCount=0;
    double tatolCTR=0;
    for (Text app: values){
        App app1=new App();
        tatolBrowseCount+=app1.getBrowseCount();
        tatolCTR+=app1.getCTR();
        count++;

    }
    App outapp=new App();
    outapp.setBrowseCount(tatolBrowseCount/count);
    outapp.setCTR(tatolCTR/count);
    context.write(values,outapp);
    }
}
*/
